package XML;

import Interfata.Command;


/**
 *
 * @author AlinT
 */
public class AddTag implements Command{

        private TagXML t;
	private TagXML radacina;

	 public AddTag(TagXML t, TagXML radacina) {
		super();
		this.t = t;
		this.radacina = radacina;
	}
	public AddTag() {
		
	}
        
	public final TagXML getT() {
		return t;
	}
	public final void setT(TagXML t) {
		this.t = t;
	}
	public final TagXML getRadacina() {
		return radacina;
	}
	public final void setRadacina(TagXML radacina) {
		this.radacina = radacina;
	}


	
	@Override
	public void execute() {
		radacina.getTaguri().add(t);
		
	}
}
